//
//  RTJNoticeView.m
//  RuiTaiJinProject
//
//  Created by jayson on 2019/3/11.
//  Copyright © 2019年 leewei. All rights reserved.
//

#import "RTJNoticeView.h"
#import "LewPopupViewController.h"

@implementation RTJNoticeView

+ (instancetype)defaultViewWithFrame:(CGRect)rect{
    
    return [[RTJNoticeView alloc]initWithFrame:rect];
    
}

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [[NSBundle mainBundle] loadNibNamed:[[self class] description] owner:self options:nil];
        
        _noticeView.frame = frame;
        [self addSubview:_noticeView];
        
        _noticeView.layer.masksToBounds = YES;
        _noticeView.layer.cornerRadius = 9;
        
        
    }
    return self;
}

-(void)withSureClick:(ShowViewBlock)block{
    
    _sureClick = block;
//    [_parentVC lew_dismissPopupView];

}

@end
